Skip to content

feat(connections): start OAuth flows from CLI - #324

Open
caiopizzol wants to merge 2 commits into
amp-labs:mainfrom
caiopizzol:feat/connect-provider
Open

feat(connections): start OAuth flows from CLI#324
caiopizzol wants to merge 2 commits into
amp-labs:mainfrom
caiopizzol:feat/connect-provider

Conversation

@caiopizzol

@caiopizzol caiopizzol commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Starting an OAuth connection previously required an embedded UI even though Ampersand exposes an authorization URL endpoint.

This adds amp connect:provider <provider>. The command requires group and consumer references, accepts an optional provider-app ID, and opens the authorization URL when a browser is available. In headless environments, it prints the URL instead.

This change only starts the OAuth flow. It does not poll for completion or create an installation.

Tests cover request construction, plain-text URL parsing, browser opening, and headless behavior.

Validation:

  • go test ./...
  • go vet ./...
  • go build ./...
  • golangci-lint v2.9.0
  • Production end-to-end test completed Asana authorization and verified the resulting connection with list:connections

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant